Repository navigation
fix(import): reads more trakt csv layouts and rated shows without ids - #3904
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f702a7f825
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| ids: { tmdb: ids.tmdb }, | ||
| showTvdb: ids.tvdb, | ||
| showImdb: ids.imdb, | ||
| showTmdb: ids.tmdb, |
There was a problem hiding this comment.
Preserve positional show IDs in the unresolved CSV
When a media_type: episode row is rejected by Trakt, this moves its TVDB/IMDb identifiers exclusively into showTvdb/showImdb, but toUnresolvedCsv.ts serializes only item.ids.*. The downloaded skipped CSV therefore loses the definitive show IDs; on re-import, an episode without both a usable title and year is dropped, while others fall back to potentially ambiguous title matching. Serialize these parent-show IDs in a form that the parser can reconstruct.
Useful? React with 👍 / 👎.
Four gaps in the Trakt CSV import made rows import as the wrong thing or not at all.
typevsmedia_type: some CSVs usetypefor the action (watch, rating, watchlist) andmedia_typefor the kind.type: watchwas read as a movie, so episode rows were looked up as movies by their show's TMDB id and could land on unrelated films.media_typedecides the kind and thosetypevalues decide the action.showTmdbis new on positional episodes, carried throughisPositionalItem,buildHistoryPayloadandfindNotFoundItems.idcolumn: the guide names anidfield with prefixed values (imdb_id:tt...), but the parser only read separate id columns.prefix:valueinto the matching id, and reads a barett...value as an IMDb id.ratingandrated_atso they can be re-imported.Verified
bunx vitest --run src/lib/sections/settings/import: 440 passed, up from 400 on maintmdbin show ids (showIdsRequestSchema)Not verified